﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace FinalProject.Entities
{
    public class Company
    {
        public int Id { get; set; }
        [Required]
        [StringLength(16)]
        public string Name { get; set; }

        public Address Address { get; set; }

        public string Logo { get; set; }

        [DisplayName("Phone Number")]
        [Required]
        [DataType(DataType.PhoneNumber)]
        public int PhoneNumber1 { get; set; }

        public int PhoneNumber2 { get; set; }

        public virtual ICollection<Store> Stores { get; set; }
        public virtual ICollection<UserDetails> Users { get; set; }
    }
}